package com.yang.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "分页查询参数")
public class PageQuery<T> {

    @ApiModelProperty(value = "页码, 默认为1")
    private int pageNum = 1;

    @ApiModelProperty(value = "每页大小, 默认为10")
    private int pageSize = 10;

    @ApiModelProperty(value = "查询参数")
    private T params;

}
